﻿using System;
using System.Collections.Generic;
using System.Text;

namespace EnCor.Security
{
    public class AuthenticationAdapterCollection : IEnumerable<IAuthenticationAdapter>
    {
        private List<IAuthenticationAdapter> _List = new List<IAuthenticationAdapter>();

        public AuthenticationAdapterCollection(IList<IAuthenticationAdapter> list)
        {
            foreach (IAuthenticationAdapter adapter in list)
            {
                _List.Add(adapter);
            }
        }
        #region IEnumerable<IAuthenticationAdapter> Members

        public IEnumerator<IAuthenticationAdapter> GetEnumerator()
        {
            return _List.GetEnumerator();
        }

        #endregion

        #region IEnumerable Members

        System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
        {
            return _List.GetEnumerator();
        }

        #endregion
    }
}
